﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SIM.Geo.BE;
using SIM.Geo.BL;

namespace SIM.Geo.SE
{
    public class SEColorRoca : ISEColorRoca
    {
        #region ISEColorRoca Members

        public List<ColorRoca> ListarColorRoca()
        {
            try
            {
                return new BLColorRoca().ListarColorRoca();
            }
            catch (Exception)
            {

                throw;
            }
        }

        public int InsertarColorRoca(ColorRoca colorRoca)
        {
            try
            {
                return new BLColorRoca().InsertarColorRoca(colorRoca);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public void ModificarColorRoca(ColorRoca colorRoca)
        {
            try
            {
                new BLColorRoca().ModificarColorRoca(colorRoca);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public void EliminarColorRoca(int codigoColorRoca)
        {
            try
            {
                new BLColorRoca().EliminarColorRoca(codigoColorRoca);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public List<ColorRoca> BuscarColorRoca(string descripcion)
        {
            try
            {
                return new BLColorRoca().BuscarColorRoca(descripcion);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public ColorRoca ObtenerColorRoca(int codigoColorRoca)
        {
            try
            {
                return new BLColorRoca().ObtenerColorRoca(codigoColorRoca);
            }
            catch (Exception)
            {

                throw;
            }
        }

        public List<ListItemInt> ObtenerListItem()
        {
            try
            {
                return new BLColorRoca().ObtenerListItem();
            }
            catch (Exception)
            {

                throw;
            }
        }

        #endregion
    }
}